const routes = [
  {
    path: "/user",
    layout: false, // 是否启用系统框架
    routes: [
      { path: "/user", routes: [{ name: "登录", path: "/user/login", component: "./user/Login" }] }
    ]
  },
  {
    name: "开发示例",
    icon: "crown",
    path: "/demo",
    routes: [
      {
        path: "/demo/pagedemo",
        name: "Ant表格及弹窗",
        icon: "smile",
        component: "./DevDemo/PageDemo"
      },
      {
        path: "/demo/tablelist",
        name: "AntPro表格",
        icon: "smile",
        component: "./DevDemo/TableList"
      },
      {
        path: "/demo/carddemo",
        name: "自定义卡片",
        icon: "smile",
        component: "./DevDemo/CardDemo"
      }
    ]
  },
  {
    path: "/welcome",
    name: "主页",
    icon: "smile",
    component: "./Welcome"
  },
  {
    path: "/matMgt",
    name: "原料管理",
    icon: "table",
    component: "./MaterialManage"
  },
  {
    path: "/matMgt/createNewMat",
    component: "./MaterialManage/childPage",
    name: "新建原料",
    hideInMenu: true
  },
  {
    path: "/matMgt/editMat",
    component: "./MaterialManage/childPage",
    name: "编辑原料",
    hideInMenu: true
  },
  {
    path: "/admin",
    name: "管理页",
    icon: "crown",
    access: "authorized",
    component: "./Admin",
    routes: [
      {
        path: "/admin/sub-page",
        name: "二级管理页",
        icon: "smile",
        component: "./Welcome"
      }
    ]
  },
  {
    path: "/client",
    icon: "smile",
    name: "客户管理",
    component: "./Client"
  },
  {
    path: '/order',
    icon: 'smile',
    name: '订单管理',
    component: './order'
  },
  {
    path: "/container",
    icon: "smile",
    name: "容器管理",
    component: "./Container"
  },
  {
    path: "/label",
    icon: "smile",
    name: "标签管理",
    component: "./Label"
  },
  {
    name: "后台管理",
    icon: "table",
    path: "/sysCfg",
    routes: [
      {
        path: "/sysCfg/tenantCfg",
        name: "租户管理",
        icon: "smile",
        component: "./Tenant"
      },
      {
        path: "sysCfg/accountCfg",
        icon: "smile",
        name: "账号管理",
        component: "./Adminer"
      }
    ]
  },
  { path: "/", redirect: "/welcome" },
  { component: "./404" }
];
export default routes;
